package com.cyj.dream.datasource.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description: 数据源配置获取
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.datasource.config
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-27 09:43
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@ConfigurationProperties("spring.datasource")
public class DataSourceProperties {

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * jdbcurl
     */
    private String url;

    /**
     * 驱动类型
     */
    private String driverClassName;

    /**
     * 查询数据源的SQL
     */
    private String queryDsSql = "select * from gen_datasource_conf where del_flag = 0";

}
